//import Cookies from 'js-cookie'

// 获取token
export function getToken() {
  //return Cookies.get('token')
  return sessionStorage.getItem("token");
}

export function setToken(token) {
  //Cookies.set('token', token)
  sessionStorage.setItem("token", token);
}

// export function getTokenExpires() {
//   return Cookies.get('token-expires')
// }

// export function setTokenExpires(expires:Date) {
//   Cookies.set('token-expires', expires, { expires: new Date(expires) })
// }
export function getRefreshToken() {
  // return Cookies.get('refreshToken')
  return sessionStorage.getItem("refreshToken");
}
export function setRefreshToken(token) {
  // Cookies.set('refreshToken', token)
  sessionStorage.setItem("refreshToken", token);
}
export function getCatalog() {
  // return Cookies.get('catalog')
  return sessionStorage.getItem("catalog");
}
export function setCatalog(catalog) {
  // Cookies.set('catalog', catalog)
  sessionStorage.setItem("catalog", catalog);
}
export function setProjIds(projIds) {
  // Cookies.set('projIds', projIds)
  sessionStorage.setItem("projIds", projIds);
}

export function setappServerId(appServerId) {
  sessionStorage.setItem("appServerId", appServerId);
}
export function getappServerId() {
  return sessionStorage.getItem("appServerId");
}
